
        <f:view>
            <h:form>
                <rich:panel header="Create/Edit forum's handle" style="border:0px" >
                
                    <div align="right" >
                        <h:commandButton value="Save" action="#{NicksBean.saveNick}" type="submit">
                            <a4j:support event="onclick" reRender="mes" />
                        </h:commandButton>
                        <h:commandButton value="Cancel" action="succes" immediate="true"/>
                        
                    </div>
                    <br>
                    <h:outputText value="(*) Required fields" />
                    <br><br>
                    <rich:panel id="mes" style="border:0px">
                        <h:messages id="mal1" globalOnly="true" style="color: red"/>
                    </rich:panel>
                    <rich:panel>
                        <h:inputHidden value="#{NicksBean.nick.id}" />
                        <h:panelGrid columns="2" >
                            <h:panelGrid columns="2" >
                                <h:outputText value="(*)" style="color: red"/>
                                <h:outputText value="New nickname" />
                            </h:panelGrid>
                            <h:panelGrid columns="2" >
                                <h:inputText id="nickname" requiredMessage="This field is required." required="true" maxlength="20" value="#{NicksBean.nick.name}" />
                                <h:message for="nickname" style="color: red" styleClass="errorMessage" />
                            </h:panelGrid>
                            <h:outputText value="E-mail privacy" />
                            <h:selectOneMenu value="#{NicksBean.nick.privacy}" >
                                <f:selectItem itemValue="0" itemLabel="Display e-mail normally" />
                                <f:selectItem itemValue="1" itemLabel="Display anonymized email" />
                                <f:selectItem itemValue="2" itemLabel="Don't show email at all" />
                            </h:selectOneMenu>
                            <h:outputText value="URL" />
                            <h:inputText maxlength="40" value="#{NicksBean.nick.url}" />
                            <h:outputText value="Note" />
                            <h:inputTextarea value="#{NicksBean.nick.note}" />
                            <h:outputText value="Thread order" />
                            <h:selectOneMenu value="#{NicksBean.nick.orders}" >
                                <f:selectItem itemValue="0" itemLabel="New at top" />
                                <f:selectItem itemValue="1" itemLabel="Old at top" />
                            </h:selectOneMenu>
                            <h:outputText value="Anons" />
                            <h:selectOneMenu value="#{NicksBean.nick.anons}" >
                                <f:selectItem itemValue="0" itemLabel="Show anonymus" />
                                <f:selectItem itemValue="1" itemLabel="Grey out anonymus" />
                            </h:selectOneMenu>
                        </h:panelGrid>
                    </rich:panel>
                </rich:panel>
            </h:form>
        </f:view>

